<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	boolean update = Boolean.valueOf(request.getParameter("update"));
%>
<html>
<head>
<script type="text/javascript" src="<%=path%>/scripts/My97DatePicker/WdatePicker.js"></script>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>公共考核录入</title>
<link href="styles/Master.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="scripts/common.js"></script>
<script type="text/javascript" src="scripts/message.js"></script>

<script type="text/javascript" src="scripts/publiceva/public_eva.js"></script>

<style>

</style>

<script>
	var gridCount = '<s:property value="publicRuleSize"/>' * 1;
	var path = '<%=path%>';
	var basePath = '<%=basePath%>';
</script>

</head>

<body>
<s:form name="publicEvaForm" id="publicEvaForm" action="publicEva-add" namespace="/publiceva" method="post">
	<s:hidden id="isSuccess" value="%{isSuccess}"></s:hidden>
	<h2 style="text-align: left">公共考核录入</h2>
	<hr width="100%" align="left" size="1" color="#E1EEF8">

	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabHeader">
		<tr height="20px">
			<td class="tdBg_right" width="10%" height="20px">工作人员编号：
				<input type="button" value="..." class="btn_mouseout" onclick="selectWorker();return false;"
						onmouseover="this.className='btn_mouseover'" onmouseout="this.className='btn_mouseout'"
						onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'">
			</td>
			<td align="left">
				<s:textfield name="publicEvaEntity.workerCode" id="workerCode" cssClass="input" onblur="return getWorkerInfo();"></s:textfield>
				<s:label id="workerName" name="publicEvaEntity.workerName"></s:label>
				<s:hidden id="hdnWorkerName" name="publicEvaEntity.workerName"></s:hidden>
			</td>
		</tr>
    	<tr height="20px">
			<td class="tdBg_right">考核项目：</td>
			<td align="left">
				<s:select id="itemId" list="itemList" listKey="columeId" listValue="name"
					name="publicEvaEntity.itemId" headerKey="" headerValue="请选择" cssStyle="width: 135px;" onchange="changeItem();"></s:select>
				<font color="#ff0000">*</font>
			</td>
		</tr>
		<tr height="20px">
			<td class="tdBg_right" width="10%" height="20px">考核规则：</td>
			<td align="left">
				<s:select id="ruleId" list="ruleList" listKey="columeId" listValue="name"
					name="publicEvaEntity.ruleId" headerKey="" headerValue="请选择" cssStyle="width: 135px;"></s:select>
				<font color="#ff0000">*</font>
			</td>
		</tr>
		<tr height="20px">
			<td class="tdBg_right" width="10%" height="20px">考核时间：</td>
			<td align="left">
				<s:textfield id="evaTime" name="publicEvaEntity.evaTime" cssClass="Wdate" onclick="WdatePicker({dateFmt: 'yyyy-MM-dd HH:mm:ss'})">
					<s:param name="value">
						<s:date name="publicEvaEntity.evaTime" format="yyyy-MM-dd HH:mm:ss"/>
					</s:param>
				</s:textfield>
				<font color="#ff0000">*</font>
			</td>
		</tr>
		<tr height="20px">
			<td class="tdBg_right" width="10%" height="20px">备注：</td>
			<td align="left">
				<s:textarea cols="20" rows="10" id="remark" name="publicEvaEntity.remark"></s:textarea>
				<font color="#ff0000">*</font>
			</td>
		</tr>
	</table>

	<center>
		<div style="padding: 4px 0pt;">
			<input type="button" value="保存" class="btn_mouseout" onclick="save();"
				onmouseover="this.className='btn_mouseover'" onmouseout="this.className='btn_mouseout'"
				onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'">
		</div>
	</center>
</s:form>

<div id="waiting" style="display: none;">
	<div id="background" class="background"></div>
	<div id="progressBar" class="progressBar">数据加载中，请稍等...</div>
</div>
</body>
</html>